
if %1==L42L goto genL42L

if %1==DFL  goto genDFL

if %1==INFINITI  goto genInfiniti

if %1==TEST goto genTest


REM the parameter is wrong
goto ERROR

:genL42L
REM set project path
set VIEW_HOME_PATH=%L42L_VIEW_HOME_PATH%
goto update_code

:genInfiniti
REM set project path
set VIEW_HOME_PATH=%INFINITI_VIEW_HOME_PATH%
goto update_code

:genDFL
REM set project path
goto update_code





REM ------------------------------------------------------------------------------------------------------------------------------------------------------
:update_code
REM first update the novanto code
rem cleartool update %VIEW_HOME_PATH%\%NOVANTO_CODE_DIR_PATH%
REM set project path
set project= %VIEW_HOME_PATH%\%PROJECT_PATH%\%PROJECT_NAME%


REM ------------------------------------------------------------------------------------------------------------------------------------------------------
:generate

REM delete targe dir
del /Q %VIEW_HOME_PATH%\%PROJECT_PATH%\Svt\Target 

RhapsodyCL -cmd=setlog %RELEASE_LOG_PATH%\generate.log -cmd=open %project% -cmd=generate
goto END



:ERROR
echo.
echo ERROR!
echo.
goto END

:END
